<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use app\modules\lenders\models\Combox;
use yii\jui\DatePicker;
use backend\widgets\inputGroupSearch\InputGroupSearch;

\backend\assets\SearchAsset::register($this);
/* @var $this yii\web\View */
/* @var $model app\modules\lenders\models\search\LendinvestmentSearch */
/* @var $form yii\bootstrap\ActiveForm */
?>

<div class="lendinvestment-search">

    <?php
    $form = ActiveForm::begin([
                'action' => ['interest'],
                'method' => 'get',
    ]);
    ?>
    <div class="col-sm-4">
        <?= $form->field($model, 'userName') ?>
    </div>
    <div class="col-sm-4">
        <?= $form->field($model, 'recycleType')->dropDownList(Combox::getComboxName('回收方式'), ['prompt' => '请选择']) ?>
    </div>
    <div class="col-sm-4">
        <?= $form->field($model, 'paymentType')->dropDownList(Combox::getComboxName('支付方式'), ['prompt' => '请选择']) ?>
    </div>
    <div class="col-sm-4">
        <?=
                $form->field($model, 'start_querenshuTime')->
                widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd'])
        ?>
    </div>
    <div class="col-sm-4">
        <?=
                $form->field($model, 'end_querenshuTime')->
                widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd'])
        ?>
    </div>
    <div class="col-sm-4">
        <?= $form->field($model, 'address')->dropDownList(Combox::getComboxName('理财签约地址'), ['prompt' => '请选择']) ?>
    </div>
    <div class="col-sm-4">
        <?=
                $form->field($model, 'start_qixiDate')->
                widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd'])
        ?>
    </div>
    <div class="col-sm-4">
        <?=
                $form->field($model, 'end_qixiDate')->
                widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd'])
        ?>
    </div>
    <div class="col-sm-4">
        <?= $form->field($model, 'contractNo') ?>
    </div>

    <div class="col-sm-4">
        <?=
                $form->field($model, 'start_generatedRightDate')->
                widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd'])
        ?>
    </div>
    <div class="col-sm-4">
        <?=
                $form->field($model, 'end_generatedRightDate')->
                widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd'])
        ?>
    </div>
    <!--<div class="col-sm-4">-->
    <!--        <div class="content_wrap">
    
                <div class="zTreeDemoBackground left">
                    <ul class="list">
                        <li class="title">&nbsp;&nbsp;<span class="highlight_red">勾选 checkbox 或者 点击节点 进行选择</span></li>
                        <li class="title">&nbsp;&nbsp;Test: <input id="citySel" type="text" readonly value="" style="width:120px;" onclick="showMenu();" />
                            &nbsp;<a id="menuBtn" href="javascript:void(0);" onclick="showMenu();
                            return false;">select</a></li>
                    </ul>
                    <ul id="treeDemo" class="ztree" style='display:none'></ul>
                </div>
            </div>-->

    <!--</div>-->
    <div class="col-sm-4">
        <?=
        $form->field($model, 'companyName')->widget(InputGroupSearch::className(), [
            'name' => 'companyNameQuery', //button 每个脚本里要唯一
            'redirectUrl' => Yii::$app->urlManager->createUrl(['groups/group/groups_search']), //url
            'libName' => 'krajeeDialogCustInput', //每个脚本里要唯一
            'backFunction' => 'successCallback', //回调函数 每个脚本里要唯一
            'dialogTitles' => '组织结构', //dialog标题
            'trashFunction' => 'trashCallback',
             'options' => ['readonly'=>"readonly"],
            'inputName' => 'lendinvestmentsearch-' . 'companyname'
        ])
        ?>
    </div>

    <div class="col-sm-4">
        <?=
                $form->field($model, 'start_expireDate')->
                widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd'])
        ?>
    </div>
    <div class="col-sm-4">
        <?=
                $form->field($model, 'end_expireDate')->
                widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd'])
        ?>
        <input type="hidden" value="<?= $dataProvider->getTotalCount()?>" id="search_count">
    </div>

    <div class="form-group-butons btnSub">
    <?= Html::submitButton('报表查询', ['class' => 'btn btn-primary btnQuery']) ?>
    <?= Html::button('月月金短信发送', ['class' => 'btn btn-primary btnQuery', 'id' => 'sendbtn']) ?>
    </div>
<?php ActiveForm::end(); ?>

</div>
